Q3Group_GetPreviousPositionOfType
You can use theQ3Group_GetPreviousPositionOfType
function to get the position of the previous object of a particular type in a group.
TQ3Status Q3Group_GetPreviousPositionOfType ( TQ3GroupObject group, TQ3ObjectType isType, TQ3GroupPosition *position);
group
- A group.
isType
- An object type.
position
- On entry, a pointer to a valid group position. On exit, a pointer to the position in the specified group of the next object that follows the object in that position and that has the specified type.
DESCRIPTION
TheQ3Group_GetPreviousPositionOfType
function returns, in theposition
parameter, the position in the group specified by thegroup
parameter of the previous object that precedes the object having the position specified on entry in theposition
parameter and that has the type specified by theisType
parameter. If the object specified on entry is the first object of that type in the group,Q3Group_GetNextPositionOfType
returns the valueNULL
in theposition
parameter. Note that the type of the object in the position specified by theposition
parameter on entry toQ3Group_GetPreviousPositionOfType
does not have to be the same as the type specified by theisType
parameter.ERRORS
kQ3ErrorInvalidObject
kQ3ErrorInvalidPositionForGroup
kQ3ErrorNULLParameter